package com.appkubes.fintech.admin.application.repair.request;


import com.appkubes.fintech.common.request.PageVO;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 订单明细
 *
 * @author xqc.
 * @date 2020/02/05 10:50:56
 */
@Data
@ToString(callSuper = true)
public class RepairOrderItemRequest extends PageVO {

    @ApiModelProperty(name = "订单维修项", value = "订单维修项")
    private String id;

    @NotBlank(message = "订单ID不能为空")
    @ApiModelProperty(name = "订单ID", value = "订单ID")
    private String orderId;

    @NotBlank(message = "用户ID不能为空")
    @ApiModelProperty(name = "用户ID", value = "用户ID")
    private String userId;

    @NotBlank(message = "名称不能为空")
    @ApiModelProperty(name = "名称", value = "名称")
    private String itemName;

    @NotBlank(message = "编码不能为空")
    @ApiModelProperty(name = "编码", value = "编码")
    private String itemCode;

    @NotNull(message = "序号不能为空")
    @ApiModelProperty(name = "序号", value = "序号")
    private Integer seqNo;

    @NotNull(message = "价格不能为空")
    @ApiModelProperty(name = "价格", value = "价格")
    private BigDecimal price;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(name = "创建时间", value = "创建时间")
    private Date createTime;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(name = "更新时间", value = "更新时间")
    private Date updateTime;

}
